﻿#ifndef POSTCOMMAND_CMDSURFACEELECTRICFIELDMAPSIDEBARITEMCHECKSTATECHANGED_H
#define POSTCOMMAND_CMDSURFACEELECTRICFIELDMAPSIDEBARITEMCHECKSTATECHANGED_H

#include <QList>
#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdSurfaceElectricFieldMapSidebarItemCheckStateChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdSurfaceElectricFieldMapSidebarItemCheckStateChanged();
        ~CmdSurfaceElectricFieldMapSidebarItemCheckStateChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setSurfaceElectricFieldMapSidebarItemCheckStateChanged(int windowId, int itemIndex, bool visible);

    private:
        int m_windowId;
        int m_itemIndex;
        bool m_visible;
    };
} // namespace PostCommand

#endif
